﻿@model string
@{
    using (var manager = new SW.Domain.Repository.RepositoryManager())
    {
        var menuRepository = manager.GetRepository<SW.Domain.Model.MMenu>();
        var menu = menuRepository.Single(m => m.Code == Model.ToString());
        if (menu != null && menu.Buttons != null && menu.Buttons.Count > 0)
        {
    <div class="panel-toolbar top clearfix">
        <ul>
            @foreach (var button in menu.Buttons)
            {
                <li><a class="ic-16 @button.Icon" @Html.Raw(button.Attributes)>@button.Title</a></li>
            }
        </ul>
    </div>
        }
    }
}